//登录参数
export type LoginParams = {
  username: string
  password: string
  captcha: string
  idKey: string
}

export type CaptcheResult = {
  captcha: string
  id: string
}

export type LoginResult = {
  leftMenuList: LeftMenuList[]
  permissionList: string[]
  sysAdmin: SysAdmin
  token: string
}

export type LeftMenuList = {
  menu_id: number
  menu_name: string
  icon: string
  url: string
  menuSvoList: MenuSvoList
}

export type SysAdmin = {
  admin_id: number
  post_id: number
  dept_id: number
  username: string
  password: string
  nickname: string
  status: number
  profile_photo: string
  email: string
  phone: string
  note: string
  create_time: string
}

export type MenuSvoList = {
  menu_name: string
  icon: string
  url: string
}
